package psd.model.Prolog.Converters;

import org.eclipse.jdt.core.dom.ReturnStatement;

import psd.model.IConverter;
import psd.model.Prolog.FactGenerationToolbox;
import psd.model.Prolog.PrologConverter;


public class PrologReturnStatementConverter extends PrologConverter implements
		IConverter<ReturnStatement> {

	public PrologReturnStatementConverter(FactGenerationToolbox toolbox) {
		super(toolbox);
	}

	@Override
	public boolean convert(ReturnStatement node) {
		String args[] = { idResolver.getID(node.getExpression()), this.getFilePath(node), this.getLineNumber(node) };
		createBodyFact(node, "returnT", args);
		return true;
	}

}
